package cn.yunyichina.test.reservation;

import java.util.UUID;

import org.junit.Test;

import cn.yunyichina.reservation.util.PasswordUtil;

/**
 * Created by Lullaby on 2016/8/25.
 */

public class Temp {

    @Test
    public void uuid() {
        int i = 0;
        do {
            System.out.println(UUID.randomUUID().toString().replaceAll("-", ""));
            i++;
        } while (i < 10);
    }

    @Test
    public void password() {
        PasswordUtil util = new PasswordUtil();
        String password = util.generate("test");
        System.out.println(password);
        System.out.println(util.verify("admin", password));
    }

}
